package com.cfets.annualAssessment.entity;

import lombok.Data;

import java.util.List;

/**
 * Created by ShenYiChou on 2017/7/11.
 */
@Data
public class AnnualInformComplete {
    private String wechat_name;
    private String ca_num;
    private String name;
    private String id_type;//
    private String id_num;
    private String org_type;//本币交易成员1 非本币交易成员2 无机构3
    private String org_name;
    private String annual_stat;//
    private String bf_annual_stat;//
    private String ca_stat;//
    private String qq;
    private String dept_type;//
    private String dept;
    private String duty_type;//
    private String duty;
    private String pos_type;//
    private String deal_type;
    private String mobile;
    private String phone;
    private String cred_record;
    private String org_addr;
    private String postcode;
    private String fax;
    private String e_mail;
    private String sex;//
    private String birth_date;
    private String highest_edu;
    private String degree;
    private String highest_sch;
    private String major;
    private String graduate_date;
    private String position;

    private List<WorkExp> workExpList;

    public void expSex(int sex){
        switch (sex){
            case 1:this.sex = "男";break;
            case 2:this.sex = "女";break;
            default:break;
        }
    }

    public void expId_type(int id_type){
        switch (id_type){
            case 1:this.id_type = "身份证" ;break;
            case 2:this.id_type = "护照" ;break;
            case 3:this.id_type = "港澳台证件";break;
            case 4:this.id_type = "其他" ;break;
            default:break;
        };
    }

    public void expOrg_type(int org_type){
        switch (org_type){
            case 1:this.org_type = "本币交易成员" ;break;
            case 2:this.org_type = "非本币交易成员" ;break;
            case 3:this.org_type = "无机构";break;
            default:break;
        };
    }

    public void expAnnual_stat(int annual_stat){
        switch (annual_stat){
            case 1:this.annual_stat = "未年检" ;break;
            case 2:this.annual_stat = "待审核" ;break;
            case 3:this.annual_stat = "通过";break;
            case 4:this.annual_stat = "不通过" ;break;
            default:break;
        };
    }

    public void expBf_annual_stat(int bf_annual_stat){
        switch (bf_annual_stat){
            case 1:this.bf_annual_stat = "未年检" ;break;
            case 2:this.bf_annual_stat = "待审核" ;break;
            case 3:this.bf_annual_stat = "通过";break;
            case 4:this.bf_annual_stat = "不通过" ;break;
            default:break;
        };
    }

    public void expCa_stat(int ca_stat){
        switch (ca_stat){
            case 1:this.ca_stat = "有效" ;break;
            case 2:this.ca_stat = "暂停" ;break;
            case 3:this.ca_stat = "注销";break;
            default:break;
        };
    }

    public void expDept_type(int dept_type, List<Parameter> dept_typeList){
        for(Parameter item:dept_typeList){
            if(dept_type==item.getPara_order()) this.dept_type = item.getPara_value();
        }
    }
    public void expDuty_type(int duty_type, List<Parameter> duty_typeList){
        for(Parameter item:duty_typeList){
            if(duty_type==item.getPara_order()) this.duty_type = item.getPara_value();
        }
    }
    public void expPos_type(int pos_type, List<Parameter> pos_typeList){
        for(Parameter item:pos_typeList){
            if(pos_type==item.getPara_order()) this.pos_type = item.getPara_value();
        }
    }
}
